package com.qingxin.park.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.codehaus.jackson.map.annotate.JsonSerialize;
import org.hibernate.annotations.GenericGenerator;
/**
 * 园区视频
 * @author Administrator
 *
 */
@Entity
@Table(name = "park_video")
@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
public class Video extends com.qingxin.sys.entity.BaseEntity implements
java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5214876166511918934L;
	
	private String videoid;
	private String videoLink;
	private String parkid;
	private String title;
	private String remark;
	private Date createTime;
	private String createBy;
	
	
	public Video(String videoid, String videoLink, String parkid, String title,
			String remark, Date createTime, String createBy) {
		super();
		this.videoid = videoid;
		this.videoLink = videoLink;
		this.parkid = parkid;
		this.title = title;
		this.remark = remark;
		this.createTime = createTime;
		this.createBy = createBy;
	}

	public Video() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "videoid", unique = true, nullable = false, length = 32)
	public String getVideoid() {
		return videoid;
	}
	public void setVideoid(String videoid) {
		this.videoid = videoid;
	}
	
	@Column(name = "videoLink", length = 100)
	public String getVideoLink() {
		return videoLink;
	}
	public void setVideoLink(String videoLink) {
		this.videoLink = videoLink;
	}
	
	@Column(name = "title", length = 20)
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	
	@Column(name = "remark", length = 50)
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	@Column(name = "create_time", length = 23)
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	@Column(name = "create_by", length = 20)
	public String getCreateBy() {
		return createBy;
	}
	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	@Column(name = "parkid", length = 32)
	public String getParkid() {
		return parkid;
	}

	public void setParkid(String parkid) {
		this.parkid = parkid;
	}
	
	
}
